package com.rbac.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = true)
public class SysUser extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 2638674132658465023L;
    /**
     * ID
     */
    private Long id;


    /**
     * 用户名
     */
    private String username;

    /**
     * 密码
     */
    private String password;

    /**
     * 昵称
     */
    private String nickName;

    /**
     * 性别
     */
    private String gender;

    /**
     * 手机号码
     */
    private String phone;

    /**
     * 邮箱
     */
    private String email;

    private LocalDateTime birthday;

    /**
     * 头像地址
     */
    private String avatarName;

    /**
     * 头像真实路径
     */
    private String avatarPath;

    /**
     * 是否为admin账号
     */
    private Boolean admin;

    /**
     * 状态：1启用、0禁用
     */
    private String enabled;


    /**
     * 修改密码的时间
     */
    private LocalDateTime pwdResetTime;

    private Long flag;
}
